package org.qydjk.common.pojo.user;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by Administrator on 2018/1/11 0011.
 */
@Entity
@Table(name = "qy_user_money_extract_detail", schema = "qydjk", catalog = "")
public class UserMoneyExtractDetail {
    private Integer id;
    private Integer extractRecordId;
    private Integer type;
    private String typeName;
    private String remark;
    private Integer opUserId;
    private String opUsername;
    private Date createTime;
    private Date updateTime;

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "extract_record_id")
    public Integer getExtractRecordId() {
        return extractRecordId;
    }

    public void setExtractRecordId(Integer extractRecordId) {
        this.extractRecordId = extractRecordId;
    }

    @Basic
    @Column(name = "type")
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Basic
    @Column(name = "type_name")
    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "op_user_id")
    public Integer getOpUserId() {
        return opUserId;
    }

    public void setOpUserId(Integer opUserId) {
        this.opUserId = opUserId;
    }

    @Basic
    @Column(name = "op_username")
    public String getOpUsername() {
        return opUsername;
    }

    public void setOpUsername(String opUsername) {
        this.opUsername = opUsername;
    }

    @Basic
    @Column(name = "create_time")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_time")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null || getClass() != object.getClass()) return false;

        UserMoneyExtractDetail that = (UserMoneyExtractDetail) object;

        if (id != that.id) return false;
        if (extractRecordId != null ? !extractRecordId.equals(that.extractRecordId) : that.extractRecordId != null)
            return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;
        if (typeName != null ? !typeName.equals(that.typeName) : that.typeName != null) return false;
        if (remark != null ? !remark.equals(that.remark) : that.remark != null) return false;
        if (opUserId != null ? !opUserId.equals(that.opUserId) : that.opUserId != null) return false;
        if (opUsername != null ? !opUsername.equals(that.opUsername) : that.opUsername != null) return false;
        if (createTime != null ? !createTime.equals(that.createTime) : that.createTime != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (extractRecordId != null ? extractRecordId.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (typeName != null ? typeName.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        result = 31 * result + (opUserId != null ? opUserId.hashCode() : 0);
        result = 31 * result + (opUsername != null ? opUsername.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        return result;
    }
}
